﻿using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CKS.Core.Framework
{
    /// <summary>
    /// 静态类存储全局缓存变量
    /// </summary>
    public static class AppCache
    {
        public static IServiceProvider ServiceProvider { get; set; }
       

        public static readonly DateTime MinTime = Convert.ToDateTime("1900-01-01 00:00:00");

        public static IServiceProvider GetServiceProvider()
        {
            return ServiceProvider.CreateScope().ServiceProvider;
        }
    }
}
